﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace ZGameFramework.Audio
{
    internal sealed partial class AudioManager : GameFrameworkModule, IAudioManager
    {
        

        /// <summary>
        /// 获取游戏框架模块优先级。
        /// </summary>
        /// <remarks>优先级较高的模块会优先轮询，并且关闭操作会后进行。</remarks>
        internal override int Priority
        {
            get
            {
                return 0;
            }
        }

        /// <summary>
        /// 游戏框架模块轮询。
        /// </summary>
        /// <param name="elapseSeconds">逻辑流逝时间，以秒为单位。</param>
        /// <param name="realElapseSeconds">真实流逝时间，以秒为单位。</param>
        internal override void Update(float elapseSeconds, float realElapseSeconds)
        {
          
        }

        /// <summary>
        /// 关闭并清理游戏框架模块。
        /// </summary>
        internal override void Shutdown()
        {

        }

    
        /// <summary>
        /// 播放音效2D
        /// </summary>
        /// <param name="name"></param>
        /// <param name="isLoop"></param>
        public void PlayAudio( string name, bool isLoop = false )
        { }

        /// <summary>
        /// 播放音效3D
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pos"></param>
        /// <param name="isLoop"></param>
        public void PlayAudio(string name, Vector3 pos, bool isLoop = false)
        { }

        /// <summary>
        /// 暂停音效 
        /// </summary>
        public void StopAudio()
        { }

        /// <summary>
        /// 暂停音效
        /// </summary>
        public void PauseAudio()
        { }
    
    }
}
 